<template>
  <div :class="$style.root">
    <el-form :inline="true" :model="formQuery" label-position="right">
      <el-row>
        <el-col :span="6">
          <el-form-item label="城市" :label-width="labelWidth">
            <el-cascader
              v-model="formQuery.city"
              :options="cityList"
              :show-all-levels="false"
              placeholder="请选择城市"
              clearable
              filterable
              style="width: 80%"
              :props="{ checkStrictly: true }"
            />
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="脚本类型" :label-width="labelWidth">
            <el-input v-model="formQuery.scriptType" placeholder="脚本类型" style="width: 80%" clearable></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="6">
          <el-form-item label="状态" :label-width="labelWidth">
            <el-select clearable v-model="formQuery.status" placeholder="请选择" style="width: 90%" filterable>
              <el-option label="启用" value="ON" />
              <el-option label="禁用" value="OFF" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="4">
          <el-button @click="onQuery" type="primary" :loading="querying">查询</el-button>
          <el-button @click="reset" type="info">重置</el-button>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<style lang="scss" module>
@import './index.module.scss';
</style>

<script>
import Index from './index';
export default Index;
</script>
